home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML Instance.sea / XML Instance / Required / plugins / HTMLWindow.jar / horst / PasswordInput.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-03-18  |  884 b   |  23 lines

  1. package horst;
  2.  
  3. import java.awt.Component;
  4. import java.awt.Dimension;
  5. import java.awt.Rectangle;
  6. import javax.swing.JPasswordField;
  7.  
  8. class PasswordInput extends JPasswordField {
  9.    public PasswordInput() {
  10.    }
  11.  
  12.    public Dimension getPreferredSize() {
  13.       Dimension dim = super.getPreferredSize();
  14.       dim.height = Utilities.getButtonHeight();
  15.       return dim;
  16.    }
  17.  
  18.    public void setBounds(Rectangle r) {
  19.       Rectangle now = ((Component)this).getBounds();
  20.       super.setBounds(r);
  21.    }
  22. }
  23.